﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

namespace LeHouse.Server.WebApi.Common
{
    public class SelectPager<T> where T : class
    {
        /// <summary>
        /// 查询类型（根据什么来查询）
        /// </summary>
        public string pledge_field { set;get;}
        /// <summary>
        /// 查询得到的数据总条数
        /// </summary>
        public int TotalSize { set; get; }

        /// <summary>
        /// 查询条件
        /// </summary>
        public string search { set; get; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { set; get; }

        /// <summary>
        /// 每页多少条
        /// </summary>
        public int PageSize { set; get; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int PageCount { set; get; }

        /// <summary>
        /// 返回结果
        /// </summary>
        public List<T> _Result = new List<T>();
        public List<T> Result
        {
            get
            {
                return _Result;
            }
            set
            {
                _Result = value;
            }
        }

        public string Pagetfoot
        {
            get
            {
                StringBuilder str = new StringBuilder();
                return str.ToString();
            }
        }

    }
}